package com.smart.village.big.screen.mapper;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.smart.village.big.screen.domain.NewsCategory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NewsCategoryMapper {
    List<NewsCategory> getOneLevelCategory(String NewsTerminal);

    List<NewsCategory> getNextLevelCategoryListByCategorySerialNumber(String newsCategorySerialNumber);

    NewsCategory selectBySerialNumber(String newsCategorySerialNumber);

    List<NewsCategory> selectTreeListByParentSerialNumber(String newsCategorySerialNumber,String NewsTerminal);

    List<NewsCategory> getPartyNewsCategoryList();

    int existsById(String id);

    List<NewsCategory> selectPathToRoot(String leafNodeId);

    NewsCategory selectById(String nodeId);
}
